import { getUserGrade } from './userInfo'
const { _id } = getUserGrade();
/* 删除一道或者清空全部 */
export const useDelOneQuestion = async (qid, className, gradeDesc) => {
    const res = await wx.cloud.callFunction({
        name: 'reqQuestionAPI',
        data: {
            scene: 'DEL_ONE_QUESTION',
            qid,
            gid: _id,
            className,
            gradeDesc,
        }
    })
    return res;
};
// 清空此课程下全部错题
export const useDELAllQuestion = async ( className, gradeDesc) => {
    const res = await wx.cloud.callFunction({
        name: 'reqQuestionAPI',
        data: {
            scene: 'DEL_ALL_QUESTION',
            gid: _id,
            className,
            gradeDesc,
        }
    })
    return res;
};